# age = 18
# # 我今年18岁
# print('我今年%d岁' % age)
# # 我今年  18岁
# print('我今年%4d岁' % age)
# # 我今年18  岁
# print('我今年%-4d岁' % age)

hour = 9
minute = 5
second = 8

# 09:05:08
print('当前时间是%d:%d:%d' % (hour, minute, second))
print('当前时间是0%d:0%d:0%d' % (hour, minute, second))

# %02d：用2个字符的宽度来显示，如果不足2个字符的宽度，那么左边用0来填充
print('当前时间是%02d:%02d:%02d' % (hour, minute, second))

p = 3.1415926

# 字符串 % 数据， 字符串里面的%有特殊含义
print('今年的收益率是%.2f%%' % p)

print('今年的收益率是%8.2f%%' % p)

print('今年的收益率是%08.2f%%' % p)

name = 'E' 'A' 'S' 'O' 'n'
print(name)

# v1 = 'E' 
# v2 = 'A' 
# v3 = 'S' 
# v4 = 'O' 
# v5 = 'n'
# v6 = v1 v2 v3 v4 v5
# print(v6)
